<template>
	<view class="reportDetail">
		<view class="list">
			<view> <text>姓名</text> 		<text>{{vuex_myinfo.username}}</text> </view>
			<view> <text>性别</text> 		<text>{{vuex_myinfo.gender}}</text> </view>
			<view> <text>出生日期</text>	 	<text>{{vuex_myinfo.birthday}}</text> </view>
			<view> <text>手机号码</text>	 	<text>{{vuex_myinfo.mobile}}</text> </view>
			<view> <text>身高</text> 		<text>{{vuex_myinfo.height}}</text> </view>
			<view> <text>体重</text> 		<text>{{vuex_myinfo.weight}}</text> </view>
		</view>
		<view class="list">
			<view> <text>用药名称</text> <text>{{db.medication}}</text> </view>
			<view> <text>用药厂家</text> <text>{{db.manufacturers}}</text> </view>
			<view> <text>用药剂量</text> <text>{{db.dosage}}</text> </view>
			<view> <text>用药时间</text> <text>{{db.medication_time}}</text> </view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				db:[]
			};
		},
		onLoad(o) {
			this.def_db(o.id)
		},
		methods:{
			def_db(medicine_id){
				this.$u.post('/appuser/medicine_info',{medicine_id}).then(res=>{
					console.log(res.data);
					this.db = res.data
				})
			}
		}
	}
</script>

<style lang="scss">
	.list{
		margin: 30rpx;
		background-color: #FFFFFF;
		padding: 0 30rpx;
		border-radius: 20rpx;
		>view{
			display: flex;
			align-items: center;
			justify-content: space-between;
			padding: 30rpx 0;
			border-bottom: 1px solid rgba(0,0,0,.05);
			
		}
	}
</style>
